package com.msmall.community.mood.service;

import com.msmall.base.pager.PaginationSupport;
import com.msmall.base.service.BaseManager;
import com.msmall.community.mood.model.Mood;

public interface MoodManager extends BaseManager<Mood, Long>{

	public void saveMood(Mood mood, Long userid) throws Exception;
	/**
	 * 获得用户当前的心情，最新的一条记录
	 * @param userid
	 * @return
	 * @throws Exception 
	 */
	public Mood getMoodByUserid(Long userid) throws Exception;
	
	/**
	 * 获得用户所有的心情
	 * @param userid
	 * @return
	 * @throws Exception 
	 */
	public void getPagination(PaginationSupport page, Long userid) throws Exception;
	
	/**
	 * 获得用户好友的心情列表。用来在本人空间首页显示
	 */
	public void getFriendMood(PaginationSupport page, Long userid) throws Exception;
}
